﻿using blackhouse.Data;
using Quartz;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace blackhouse.StareKino.QuartzActions {
    public class ReservationAutomaticArchiwumAction : IJob {

        #region Fields

        private MsSqlAdoDataHelper dataHelper;

        #endregion

        #region Constructors

        public ReservationAutomaticArchiwumAction() {
            this.dataHelper = new MsSqlAdoDataHelper(ConfigurationManager.AppSettings["MSSQLConnectionString"]);
        }

        #endregion

        #region Methods

        public void Execute(IJobExecutionContext context) {
            this.dataHelper.Reset();
            this.dataHelper.ProcedureName = "bhp_ReservationAutoArchiwum";
            this.dataHelper.ExecuteWithoutResult();
        }

        #endregion

    }
}